<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>List of All Employees</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="http://lensandphoto.com/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }
    </style>
    <link href="http://lensandphoto.com/css/bootstrap.cs" rel="stylesheet">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Fav and touch icons -->
    <link rel="shortcut icon" href="/Users/banderjumah/PycharmProjects/Manager/templates/assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/Users/banderjumah/PycharmProjects/Manager/templates/assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/Users/banderjumah/PycharmProjects/Manager/templates/assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/Users/banderjumah/PycharmProjects/Manager/templates/assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="/Users/banderjumah/PycharmProjects/Manager/templates/assets/ico/apple-touch-icon-57-precomposed.png">
</head>

<body>

<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container-fluid">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <a class="brand" href="#">Management System</a>
            <div class="nav-collapse collapse">
                <p class="navbar-text pull-right">
                    Logged in as <a href="#" class="navbar-link">Username</a>
                </p>
                <ul class="nav">
                    <li class="active"><a href="#">Home</a></li>
                    <li><a href="#about">Companies</a></li>
                    <li><a href="#contact">Employees</a></li>
                    <li><a href="#contact">Cars</a></li>
                    <li><a href="#contact">Documents</a></li>
                </ul>
            </div><!--/.nav-collapse -->
        </div>
    </div>
</div>

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span2">
            <div class="well sidebar-nav">
                <ul class="nav nav-list">
                    <li class="nav-header">Employes</li>
                    <li><a href="#">List</a></li>
                    <li><a href="#">Add</a></li>
                    <li class="nav-header">Documents</li>
                    <li><a href="#">List</a></li>
                    <li><a href="#">View</a></li>
                    <li class="nav-header">Cars</li>
                    <li><a href="#">List</a></li>
                    <li><a href="#">Add</a></li>
                </ul>
            </div><!--/.well -->
        </div><!--/span-->
        <div class="span9">
            <div>
                <h3>Employe List - (all companies) </h3>
                {%  if employee_list %}
                    <span class="label label-important">number of active employees : {{ contracts.count }} </span>
                    <p></p>
                    <table class="table table-hover table-condensed table-striped">
                        <tr>
                            <th> ID No.</th>
                            <th> Name </th>
                            <th> Job Title </th>
                            <th> Company </th>
                            <th> Contract Date </th>
                            <th> Contract Expiry </th>
                            <th> Material Status </th>
                            <th> Salary </th>
                            <th> Contract Number </th>
                        </tr>

                        {% for Employee in employee_list  %}


                        <tr>



                            {% if contracts %}
                                {% for c in contracts  %}

                                    {% if c.employee == Employee %}

                                        <td>{{ Employee.id_no  }} </td>
                                        <td>{{ Employee.name }} </td>
                                        <td>{{ Employee.jobTitle }} </td>
                                        <td>{{ Employee.company }} </td>
                                        <td>{{ c.orgDate  }} </td>
                                        <td>{{ c.expDate }} </td>
                                        <td>{{ c.maritalStatus }}</td>
                                        <td>{{ c.salary }}</td>
                                        <td>{{ c.contract_no }}</td>

                                       {{ break }}

                                    {% endif %}

                                {% endfor %}

                            {% endif %}

                        {%  endfor %}
                        </tr>


                    </table>



                {% endif %}


            </div>


            <hr>

            <footer>
                <p>&copy; Bander 2012</p>
            </footer>

        </div><!--/.fluid-container-->

        <!-- Le javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script src="../assets/js/jquery.js"></script>
        <script src="../assets/js/bootstrap-transition.js"></script>
        <script src="../assets/js/bootstrap-alert.js"></script>
        <script src="../assets/js/bootstrap-modal.js"></script>
        <script src="../assets/js/bootstrap-dropdown.js"></script>
        <script src="../assets/js/bootstrap-scrollspy.js"></script>
        <script src="../assets/js/bootstrap-tab.js"></script>
        <script src="../assets/js/bootstrap-tooltip.js"></script>
        <script src="../assets/js/bootstrap-popover.js"></script>
        <script src="../assets/js/bootstrap-button.js"></script>
        <script src="../assets/js/bootstrap-collapse.js"></script>
        <script src="../assets/js/bootstrap-carousel.js"></script>
        <script src="../assets/js/bootstrap-typeahead.js"></script>

</body>
</html>
